package com.hmdp.utils;

/**
 * @author 10550
 */
public class RedisConstants {
    /**
     * 登录-短信验证码
     */
    public static final String LOGIN_CODE_KEY = "login:code:";
    public static final Long LOGIN_CODE_TTL = 2L;

    /**
     * 登录-token
     */
    public static final String LOGIN_USER_KEY = "login:token:";
    public static final Long LOGIN_USER_TTL = 12L;

    /**
     * 缓存-商户信息
     */
    public static final String CACHE_SHOP_KEY = "cache:shop:";
    public static final Long CACHE_SHOP_TTL = 30L;

    /**
     * 缓存-NULL
     */
    public static final String CACHE_NULL = "null";
    public static final Long CACHE_NULL_TTL = 5L;

    /**
     * 互斥锁-商户信息
     */
    public static final String LOCK_SHOP_KEY = "lock:shop:";
    public static final Long LOCK_SHOP_TTL = 15L;
    /**
     * 互斥锁-订单
     */
    public static final String LOCK_ORDER_KEY = "lock:order:";

    /**
     * 商户自增ID
     */
    public static final String INCR_SHOP_ID = "incr:order:";

    /**
     * Redis-优惠卷库存-热数据前缀
     */
    public static final String HOT_STOCK_SECKILL_VOUCHER = "hot:seckill:stock:";

    /**
     * 点赞-博客-key
     */
    public static final String LIKE_BLOG_KEY = "like:blog:";

    /**
     * 关注用户列表-key
     */
    public static final String FOLLOW_USER_KEY = "follow:user:";

    /**
     * 用户Feed流邮箱-key
     */
    public static final String FEED_EMAIL_KEY = "feed:email:";

    /**
     * 商户GEO类型-key
     */
    public static final String GEO_SHOP_TYPE_KEY = "geo:shop:";

    /**
     * 用户签到-key
     * sign:zhangsan:2024:1
     */
    public static final String SIGN_MONTH_KEY = "sign:";

}
